<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="common.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Thêm sản phẩm</title>
<style type="text/css">

#a {
	color: blue;
	background-color: #FF9A00;
	display: block;
	text-decoration: none;
	font-family: cursive;
}

#a:HOVER {
	color: #FFFFFF;
	background-color: #FF4700;
	text-decoration: none;
	display: block;
	font-family: cursive;
}

#a:ACTIVE {
	background-color: #FF4700;
	text-decoration: none;
	display: block;
	font-family: cursive;
}
#a:LANG {
	color: #FFFFFF;
	background-color: #FF4700;
	text-decoration: none;
	display: block;
	font-family: cursive;
}

</style>
</head>
<body>
<%
	String userid=getVal((String)session.getValue("userid"),"");
	if(userid.equals("")|| userid.equals("0") || userid.equals("-1")|| userid.equals("-2")) response.sendRedirect("admin.jsp");
%>
<p align=center><font size=10>Thêm sản phẩm</font></p>
<form name="uploadForm" action="sqladdproduct.jsp" enctype="multipart/form-data" accept-charset="UTF-8" method=POST onSubmit="return check();">
<table width=1024 align=center>
	<tr><td width=1024 align="center" colspan=2><a id="a" href="productmanager.jsp">Quay về trang quản lí</a><br></td></tr>
	<tr><td width=50% align="right">Tên sản phẩm:</td>
	<td width=50% align="left"><input type="text" name="name"/></td></tr>
	<tr><td width=50% align=right>Hãng sản xuất:</td>
	<td width=50% align=left>
		<select name="provider">
			<option value="Sony Ericsson">Sony Ericsson</option>
			<option value="Nokia">Nokia</option>
			<option value="Apple">Apple</option>
			<option value="Samsung">Samsung</option>
			<option value="Motorola">Motorola</option>
		</select>
	</td></tr>
	<tr><td width=50% align=right>Giá:</td>
	<td width=50% align=left><input type="text" name="price"/></td></tr>
	<tr><td width=50% align=right>Ảnh minh họa:</td>
	<td width=50% align=left><input name="file" type="file" id="file"></td></tr>
	<tr><td width=50% align=right valign=top>Cấu hình:</td> 
	<td width=50% align=left><textarea name=detail rows=10 cols=20></textarea></td></tr>
	<tr><td width=50% align=right></td><td width=50% align=left><input type=submit Value='Ok'></td></tr>
</table>
</form>
</body>
</html>